Day 16 - Regular expressions - Multiple matches
54
Exercise 16.04
The file simple.log contains the HTTP method used in the request (for example GET or POST) followed
by a space and the rest of the log line. For each request that uses a GET print the HTTP method and
everything that follows.
Go to solution
Multiple matches are one of the most used components of the regular expressions’ syntax, so make
sure you feel comfortable with them. After all, they save a lot of typing, and allow to cover a great
number of cases with just a couple of symbols, so they are a good tool for your belt.
Now it’s maybe time to relax, if it’s evening and you are home, or to focus on something else if you
still have to begin your day. Have a great day/a lovely evening!
Suggested film for the evening: The Social Network (2010)